/**
 * @file    sop_calc.h
 * @brief   计算SOP值
 * @author  Liuwei
 * @version 1.0.1
 * @date    2023-04-28
 * 
 * @copyright Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version   <th>Author   <th>Description
 * <tr><td>2023-04-28 <td>1.0.1     <td>Liuwei   <td>首次创建
 * </table>
 */

#ifndef __SOP_CALC_H_
#define __SOP_CALC_H_

/* file includes -------------------------------------------------------------*/

/* cplusplus -----------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif

/* macro/define/typedef ------------------------------------------------------*/
#include <stdint.h>

/* variables -----------------------------------------------------------------*/

/*******************************************************************************
 * public API List
 ******************************************************************************/
void sop_calc(uint16_t run_cycle);
uint16_t sop_calc_cv(void);
uint16_t sop_calc_dv(void);

#ifdef __cplusplus
}
#endif

#endif  /* #ifndef __SOP_CALC_H_ */
/********** Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD *********/
